package com.xzzz.backend.bsms.server.base.yuque.config;

import com.xzzz.backend.bsms.server.base.yuque.YuqueFeign;
import com.xzzz.backend.bsms.server.base.yuque.pojo.UserRes;
import com.xzzz.common.base.pojo.R;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 回调类需要 @Component 注入
 *
 * @author xzzz
 */
@Slf4j
@Component
public class YuqueFeignServiceFallback implements YuqueFeign {

    @Override
    public R<UserRes> user() {
        return R.fault("请求失败, 进入熔断方法 [YuqueFeignServiceFallback.user]");
    }
}
